package com.cw.jeeyt.dao.domain.security;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.cw.jeeyt.dao.model.security.SecurityOrgDo;
import com.cw.jeeyt.dao.model.security.SecurityUserDo;

import lombok.Data;

/**
 * 组织机构视图对象，继承于OrgUnit
 *
 * @author fengmq
 */
@Data
public class SecurityOrgModel extends SecurityOrgDo implements Serializable {
    private static final long serialVersionUID = -8142922970071282853L;
    /** 组织机构根节点Id */
    public static transient final Integer ROOTID = 99999999;
    /** 根组织英文简称 */
    public static transient final String ROOTENGNAME = "ROOT";
    public static int grantCompanyCount = 3;
    /** 父组织机构名称 */
    private String parentOrgName;
    /** 该组织所拥有的用户 */
    private List<SecurityUserDo> orgUsers = new ArrayList<SecurityUserDo>();
}
